package lab02.test22;

import java.util.Scanner;

public class Test_22 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串：");

        String str = sc.nextLine();

        char[] arr = str.toCharArray();
        StringBuffer sb = new StringBuffer();

        for (int i = 0; i < arr.length; i++) {
            if (arr[i] >= 'A' && arr[i] <= 'Z') {

                sb.append(String.valueOf(arr[i]).toLowerCase());

            } else if (arr[i] >= '0' && arr[i] <= '9') {

                sb.append(0).toString();

            }  else if (arr[i]>='a'&&arr[i]<='z'){
                sb.append(arr[i]).toString();

            } else {
                arr[i] = '#';
                sb.append(arr[i]).toString();
            }
        }
        System.out.println(sb);
    }
}
